package com.ebook.service;

import com.ebook.entity.Book;
import com.ebook.ui.fragment.bookfind.Keyword;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;
@Service
public interface BookService {
    List<Book> selectAll();
    List<Book> selectBookByName(String book_name);
    Book selectBookById(Integer book_id);
    List<Book> selectBookByIsCharge(boolean charge);
    List<Book> selectBookByCategoryId(Integer category_id);
    List<Book> selectBookByCategoryName(String category_name);
    String getBookAuthorByBookId(Integer book_id);
    ArrayList<String> getBookDirectoryByBook_id(Integer book_id);
    ArrayList<Book> selectBookByKeyWord(Keyword keyword);
}